#ifndef __qyeasyedit__
#define __qyeasyedit__

#include <qmainwindow.h>

class QTabWidget;
class QLabel;

class QyEasyEdit : public QMainWindow {
	Q_OBJECT
public:
	QyEasyEdit();
	~QyEasyEdit();

public slots:
	void openFile( const QString & fileName=QString() );

private slots:
	void on_newTabAction_triggered();
	void on_openAction_triggered();
	void on_saveAction_triggered();
	void on_closeTabAction_triggered();
	void encodingChanged( const QString & encodingName );
	void fileNameChanged( const QString & fileName );
	void on_tabWidget_currentChanged( int index );
	void linesChanged();
	void cursorPositionChanged( int line, int pos );

private:
	void createMenu();
	void updateStatusBar();

	QTabWidget * tabWidget;
	QLabel * encodingStatus;

};

#endif/*__qyeasyedit__*/
